#version 140

in vec2 vertex;

vec2 offset[4] = vec2[4](vec2(-0.5,-0.5),
vec2(0.5,-0.5),
vec2(0.5,0.5),
vec2(-0.5,0.5)
);

void main()
{
	gl_Position = vec4( vertex + offset[ gl_InstanceID ], 0, 1 );
}